package models;

import java.util.Calendar;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.JoinTable;
import javax.persistence.Lob;
import javax.persistence.ManyToOne;

import play.db.jpa.Model;

@Entity
public class GuidanceReply extends Model {
	/**
	 * Attributes of Guidance Reply
	 * 
	 * @author shayma hesham
	 **/

	public long questionId;
	public long userId;

	@Lob
	public String replyContent;
	public Date replyDate = new Date();

	/**
	 * Guidance Reply Initializer Constructor
	 * 
	 * @author shayma hesham
	 **/

	public GuidanceReply(long userId, long questionId, String replyContent) {

		this.userId = userId;
		this.questionId = questionId;
		this.replyContent = replyContent;
		this.replyDate = Calendar.getInstance().getTime();

	}

	/**
	 * This method gets ReplyContent
	 * 
	 * @author shayma
	 */
	public String getReplyContent() {
		return replyContent;
	}

	/**
	 * This method sets the ReplyContent
	 * 
	 * @author shayma hesham
	 * @param replyContent
	 */

	public void setReplyContent(String replyContent) {
		this.replyContent = replyContent;
	}

}
